package cn.fzkj.security.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;

@Controller
@RequestMapping("user")
public class UserController {

    @GetMapping("getUser")
    @ResponseBody
    public String getUser(){
        Map<String, String> userMap = new HashMap<>();
        userMap.put("name","杨明梅");
        userMap.put("age","22");
        userMap.put("love","mr");
        return userMap.toString();
    }

}
